package com.tedu.ivos.application.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class AppVO {
    @ApiModelProperty(value = "申请单id")
    private Long id;
    @ApiModelProperty(value = "申请人id")
    private Long userId;
    @ApiModelProperty(value = "申请人姓名")
    private String username;
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date startTime;
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date endTime;
    @ApiModelProperty(value = "驾照地址")
    private String imgUrl;
    @ApiModelProperty(value = "出发地")
    private String departureAddr;
    @ApiModelProperty(value = "目的地")
    private String destinationAddr;
    @ApiModelProperty(value = "申请原因")
    private String reason;
    @ApiModelProperty(value = "申请备注")
    private String remark;
    @ApiModelProperty(value = "申请单状态")
    private String status;
    @ApiModelProperty(value = "分配车辆id")
    private Long vehicleId;
    @ApiModelProperty(value = "申请被驳回原因")
    private String rejectReason;
    @ApiModelProperty(value = "申请单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date createTime;
    @ApiModelProperty(value = "申请单更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date updateTime;

    //因为业务需要 因此需要额外添加瞬态属性(不存入数据库)
    @ApiModelProperty(value = "审批人id集合")
    private List<Long> auditUserIdList;
    @ApiModelProperty(value = "审批人姓名集合(字符串形式)")
    private String auditUsernameList; //如 "moly,tom"
}
